---陷阱攻击行为
---@class PitfallAttackAction:AbstractLeaf
local PitfallAttackAction = ClientFight.CreateClass("PitfallAttackAction",ClientFight.AbstractLeaf,ClientFight.IAction)
function PitfallAttackAction:update()
    -- 技能目标范围内选择
    local target = SkillManager.selectAttackTarget(self.fight,self.fighter,self.fighter.normalAttack,self.fighter.position,nil,true)
    if target == nil then
        return EStatus.FAILURE
    end
   SkillRoleMgr.savePathFile("[" .. fight.frame .. "][攻击]" .. fighter .. "准备对" .. target .. "触发陷阱，使用技能"
            .. fighter.normalAttack.skillId);
    --释放技能
    SkillManager.useSkill(self.fight,self.fighter,target,self.fighter.normalAttack)
    --移除掉自己
    table.removeByValue(self.fight.teams[self.fighter.teamIndex].others,self.fighter)
    return EStatus.SUCCESS
end